// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** 检查登录态,轮询或者WebSocket GET /api/auth/check */
export async function checkLoginUsingGet(options?: { [key: string]: any }) {
  return request<boolean>('/api/auth/check', {
    method: 'GET',
    ...(options || {})
  })
}

/** 健康检查 GET /api/auth/health */
export async function checkHealthyUsingGet(options?: { [key: string]: any }) {
  return request<boolean>('/api/auth/health', {
    method: 'GET',
    ...(options || {})
  })
}

/** 踢出用户 GET /api/auth/kick */
export async function kickOutUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.kickOutUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<boolean>('/api/auth/kick', {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** 获取公钥 GET /api/auth/publicKey */
export async function getPublicKeyUsingGet(options?: { [key: string]: any }) {
  return request<string>('/api/auth/publicKey', {
    method: 'GET',
    ...(options || {})
  })
}
